package command

import (
	"log"

	"gitee.com/csingo/cConsole"
)

type HelloCommand struct{}

func (i *HelloCommand) Desc() *cConsole.ConsoleDesc {
	return &cConsole.ConsoleDesc{
		Name: "hello",
		Methods: []*cConsole.ConsoleMethod{
			{
				Name: "say",
				Desc: "",
				Params: []*cConsole.ConsoleParams{
					{Name: "name", Desc: "", Optional: false},
				},
			},
		},
	}
}

func (i *HelloCommand) Say(name string) {
	log.Println("hello", name)
}
